package com.jd.dl.web.tag;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.AbstractUITag;

import com.opensymphony.xwork2.util.ValueStack;

public class ProductAttrTag extends AbstractUITag {
	private List attrs;
	@Override
	public Component getBean(ValueStack value, HttpServletRequest request, HttpServletResponse response) {
		return new ProductAttrBean(value,request,response);
	}

	protected void populateParams() {
		super.populateParams();
		ProductAttrBean bean = (ProductAttrBean) component;
		bean.setAttrs(attrs);
	}


	public void setAttrs(List attrs) {
		this.attrs = attrs;
	} 
	
	
}
